<?php
function getUserInfo($empno)
	{
		
		try {
	header("content-type:text/html;charset=utf-8");

    $client = new SoapClient("http://192.1.1.244/Scal.HR2009.WebService/HR2009.asmx?wsdl");


class ScalGetStaffInfo 
	{
	
	var $command="<Root><CName>ERVLEIKU</CName><Cmd>ScalGetStaffInfo</Cmd><EmpNo>008183</EmpNo></Root>";
	
	};
	$arrPara=array(new ScalGetStaffInfo);
	
	$arrResult = $client->__Call("ScalGetStaffInfo",$arrPara);
	//var_dump($arrResult);
	//echo $arrResult->ScalGetStaffInfoResult;
	return $arrResult->ScalGetStaffInfoResult;

} 
catch (SOAPFault $e)
{

	print $e;

}
	}
	echo 111;
	echo getUserInfo('008183');
	
	?>